import java.util.Observable;

/**
 *
 * @author Bora SAYINER
 * @since Dec 14, 2014 12:09:12 PM
 * @version 1.0
 */
public class NukleerSantral extends Observable {

	private static final int MAX_TEMP = 100;
	private int sicaklik;

	public int getSicaklik() {
		return sicaklik;
	}

	public void setSicaklik(int sicaklik) {
		System.out.println("Mevcut sicaklik: " + sicaklik);
		this.sicaklik = sicaklik;
		if (sicaklik >= MAX_TEMP) {
			setChanged();
			notifyObservers(sicaklik);
		}
	}
}
